package com.example.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminMapper extends BaseMapper<Admin> {
    @Select({"SELECT adminpassword,adminacount FROM admin WHERE adminacount = #{adminacount} and adminpassword = #{adminpassword}"})
    Admin SelectAdminPass(@Param("adminacount") String name,@Param("adminpassword") String pass);

}
